@extends('back.index')
@section('title','新增角色-后台管理系统')
@section('mian')
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <h2 class="sub-header power_mian">管理员管理</h2>
        <h4><a href="{{url('back/addstrator')}}">新增管理员</a></h4>
        <div class="table-responsive">
            <table class="table table-striped">
                <thead>
                <tr>
                    <th>id</th>
                    <th>用户名</th>
                    <th>手机号码</th>
                    <th>角色名称</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @if(!empty($data))

                @foreach($data as $k)
                    <tr>
                        <td>{{$k->id}}</td>
                        <td>{{$k->name}}</td>
                        <td>{{$k->email}}</td>
                        <td>{{$k->rolles}}</td>
                        <td><a href="{{url('back/userdeal/'.$k->id)}}">分配角色</a> &nbsp;<a href="{{url('back/updata/'.$k->id)}}">修改</a> &nbsp; <a href="{{url('back/delete')}}">删除</a></td>
                    </tr>
                @endforeach
                @endif
                </tbody>
            </table>
        </div>
    </div>
@endsection